package devcken.datatables.serverside;

public class ToServer
{
	private int iDisplayStart;
	
	private int iDisplayLength;
	
	private int iColumns;
	
	private String sSearch;
	
	private boolean bRegex;
	
	private int iSortingCols;
	
	private String sEcho;
	
	public int getPage()
	{
		return (this.iDisplayStart / this.iDisplayLength) + 1;
	}

	public int getiDisplayStart()
	{
		return iDisplayStart;
	}

	public int getiDisplayLength()
	{
		return iDisplayLength;
	}

	public int getiColumns()
	{
		return iColumns;
	}

	public String getsSearch()
	{
		return sSearch;
	}

	public boolean isbRegex()
	{
		return bRegex;
	}

	public int getiSortingCols()
	{
		return iSortingCols;
	}

	public String getsEcho()
	{
		return sEcho;
	}

	public void setiDisplayStart(int iDisplayStart)
	{
		this.iDisplayStart = iDisplayStart;
	}

	public void setiDisplayLength(int iDisplayLength)
	{
		this.iDisplayLength = iDisplayLength;
	}

	public void setiColumns(int iColumns)
	{
		this.iColumns = iColumns;
	}

	public void setsSearch(String sSearch)
	{
		this.sSearch = sSearch;
	}

	public void setbRegex(boolean bRegex)
	{
		this.bRegex = bRegex;
	}

	public void setiSortingCols(int iSortingCols)
	{
		this.iSortingCols = iSortingCols;
	}

	public void setsEcho(String sEcho)
	{
		this.sEcho = sEcho;
	}
}